import { createStore } from 'vuex'
import createPersistedstate from 'vuex-persistedstate'

export default createStore({
  state: {
    language: 'en-us'
  },
  getters: {
    getLanguage(state) {
      return state.language
    }
  },
  mutations: {
    setLang(state, language) {
      state.language = language;
    },
  },
  actions: {
  },
  modules: {
  },
  plugins: [
    createPersistedstate({ storage: window.sessionStorage })
   ] 
})
